portainer

#docker

Portainer

Docker and Kubernetes Management. A no-code solution for spinning up containers. I usually use it to start / stop / log / shell into containers easily

connections

installation

Docker

  1. ./compose.yml
version: "3.2"

services:
  portainer:
    image: portainer/portainer-ce:2.11.1
    container_name: portainer
    restart: always
    ports:
      - 8000:8000
      - 9000:9000
      - 9443:9443
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./portainer_data:/data

# networks:
#   default:
#     external:
#       name: nginx-prox-mgmt-3_default
  1. ./upgrade.sh
#! /bin/bash
echo " upgrading portainer "

echo " stop portainer docker "
sudo docker stop portainer

echo " remove old portainer docker "
sudo docker rm portainer

echo " sudo docker-compose u -d "
cd /home/<username>/docker/portainer

sudo docker-compose up -d

upgrade a container

How to Update a Docker Container using Portainer - WunderTech
video tutorial - WunderTech

  1. Select Containers http://YOUR_DOMAIN.lan:9000/#!/2/docker/containers, then press   the container that you’d like to update.
  2. Select into the individual container,(you'll see Container details at the top of the page) and you’ll see a button named  By selecting this button,
make sure your critical data is mapped to a volume. That means bye bye to any data only living on RAM

  1. Select Pull latest image toggle, then Recreate.
  2. When this process is finished, the container will be recreated with the latest image. Select the container and Start it. The status will change to running

Alternatives

Portainer has been pushing heavy on their enterprise/paid models within the app. I may switch over to louislam/dockge: A fancy, easy-to-use and reactive self-hosted docker compose.yaml stack-oriented manager (github.com)as it seems to be a slimed down version of all the stuff I'd use in a container manager